﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace AR.Controls
{
 
        public class CustomDataGrid : DataGrid
        {
            public CustomDataGrid()
            {
                this.DefaultStyleKey = typeof(CustomDataGrid);
            }

            private ValidationSummary _validateSummary;
            public override void OnApplyTemplate()
            {
                base.OnApplyTemplate();
                _validateSummary = this.GetTemplateChild("ValidationSummary") as ValidationSummary;
            }
            public ValidationSummary ValidationSummary { get { return _validateSummary; } }
        }

    
}
